import request from "@/utils/request";
import { requestPath } from "@/utils/global.js";

export function getTreeAPI(params) {//一级分类列表
  return request({
    url: `${requestPath.resource}/diytype/name/tree`,
    method: "get",
    params
  });
}

export function getListAPI(params) {//列表
  return request({
    url: `${requestPath.resource}/resource/search`,
    method: "get",
    params
  });
}